var express = require('express');
var db = require('./db.js')

var router = express.Router()
var bodyParser = require('body-parser');
var md5 = require('md5-nodejs');
var urlencodedParser = bodyParser.urlencoded({ extended: false })

var multer = require('multer');
router.get('/get-browing',async function(req,res){
    let { bdid }=req.query
    let sql =`select m.id, m.title from msbd as m where m.id in (${bdid})`
    let r =await db.doSql(sql)
    res.send(db.heal(r))
})
module.exports = router